from wx import MimeTypesManager

x = MimeTypesManager().GetFileTypeFromExtension('pdf')
print type(x)

print x.GetMimeType()
print x.GetAllCommands('','')